package com.gph.saviorframework;

/**
 * 常量
 * @author guopeihui
 *
 */
public class Constants {

	/** 框架名 */
	public static final String FRAMEWORK_REQUEST_PATH = "sf";

	/** 前端用户 */
	public static final String PC_PATH = "pc";

	/**
	 * 版本号的初始值
	 */
	public static final int VERSION_INIT_VALUE = 0;

    /**
     * 工作流平台
     */
	public static final String WORKFLOW_PLATFORM_PATH = "workflow";

	
	public static final String FDFS = "fdfs";

	/** excel文件列定义KEY */
	public static final String DEFAULT_EXCEL_COLUMNS_MODEL_KEY = "EXCEL_COLUMN_MODEL";

	/** 默认Excel视图 */
	public static final String DEFAULT_EXCEL_VIEW = "excelView";

	/** 默认写入Excel文件最大记录数量 */
	public static final int DEFAULT_EXCEL_ROW_LIMIT = 65000;

	/** 默认数据KEY */
	public static final String DEFAULT_RECORD_MODEL_KEY = "rows";
	
	public static final String DEFAULT_FOOTER_MODEL_KEY = "footer";
	
	public static final String DEFAULT_PAGE_MODEL_KEY = "page";

	/** 默认数量KEY */
	public static final String DEFAULT_COUNT_MODEL_KEY = "total";

	/**
	 * 数据总量
	 */
	public static final String DEFAULT_RECORDS_MODEL_KEY = "records";

	/**默认分页开始记录行数*/
	public static final String DEFAULT_PAGE_START = "0";

	/**默认单页记录数量*/
	public static final String DEFAULT_PAGE_SIZE = "20";

	/**默认排序字段*/
	public static final String DEFAULT_SORT_FIELD = "order";

	/**默认排序方向*/
	public static final String DEFAULT_SORT_DIRECTION = "asc";
	
	public static final String DEFAULT_SORT_MODEL_KEY = "sort";
	
	public static final String DEFAULT_DIR_MODEL_KEY = "dir";

	/** 默认密码 */
	public static final String DEFAULT_PASSWORD = "123456";

	public static final String DEFAULT_SUCCESS_KEY = "success";

	public static final String DEFAULT_ERROR_KEY = "error";

	public static final String DEFAULT_ID_KEY = "id";

	/** 树根节点id */
	public static final String TREE_ROOT_NODE = "TREE_ROOT_NODE";

	/** 模块类型:系统安全 */
	public static final String MODULE_CATEGORY_SECURITY = "security";
	
	/** 模块类型:activiti */
	public static final String MODULE_CATEGORY_ACTIVITI = "activiti";

	/** 模块类型:redis */
	public static final String MODULE_CATEGORY_REDIS = "redis";
	
	/** 模块类型:系统配置 */
	public static final String MODULE_CATEGORY_CONFIG = "config";
	
	/** 模块类型:测试 */
	public static final String MODULE_CATEGORY_TEST = "test";

	public static final String WEB_BG = "bg";
	
	public static final String RES_SUCCESS="success";
	
	public static final String ERROR_INFO = "error";

	public static final String TOKEN_LEABEL = "_token_";

}
